package com.tdr.myandroid.model;

import java.util.ArrayList;

/**
 * Created by lemingdeng on 2014-07-13.
 */
public class Profile {
    private String name;

    private ArrayList<EventProtocol> eventList = new ArrayList<EventProtocol>(0);

    public Profile(String name) {
        this.name = name;
    }

    public void addEvent(EventProtocol event) {
        eventList.add(event);
    }

    public void removeEvent(EventProtocol event) {
        eventList.remove(event);
    }

    public ArrayList<EventProtocol> getEventList() {
        return eventList;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
